<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title>{$site_seo.title}</title>
    <meta name="keywords" content="{$site_seo.keywords}">
    <meta name="description" content="{$site_seo.description}">
    <script type="text/javascript" src="__JS__/browser.js"></script>
    <script type="text/javascript">
        browserRedirect("{:url('/','','','m')}","{:url('/','','','www')}");
    </script>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="__STATIC__/bootstrap4.6.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="__CSS__/common.css?1.0.0">

    {block name="header"}{/block}
</head>
<body class="bg-light {$index_style}">
<div class="top-nav border-bottom">
    <nav class="navbar navbar-expand-lg navbar-light  width-out">
        <p class="navbar-text mb-0">欢迎来到<a class="d-inline text-black-50" href="/">{$site_info.site_title}</a></p>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
            <ul class="navbar-nav">
                {neq name="$user_info" value=""}
                <li class="nav-item">
                    <a class="nav-link dropdown-toggle d-flex align-items-center" href="#" id="navbarHeaderTop" role="button"
                       data-toggle="dropdown" data-hover="dropdown" aria-haspopup="true" aria-expanded="false">
                        <div class="dropdown-img">
                            <img class="user-avatar" src="{$user_info.avatar}">
                        </div>
                        <span class="user-name">{$user_info.nickname}</span>
                    </a>
                    <div class="dropdown-menu history-list dropdown-menu-right" aria-labelledby="navbarHeaderTop">
                        <div class="d-flex border-bottom px-3 pb-2 justify-content-between">
                            <p class="text-dark mb-0">浏览记录</p>
                            <a class="text-primary d-block" href="{:url('/user/index')}">个人中心</a>
                        </div>
                        <ul class="history-lists empty-box-2" data-empty="true">
                        </ul>
                        <div class="d-flex pt-2 border-top px-3 justify-content-between">
                            <a class="text-secondary d-block" href="{:url('/user/collect')}">我的收藏</a>
                            <a class="text-secondary d-block" id="logOut">退出</a>
                            <a class="text-warning d-none" href="{:url('/user/recharge_power')}">充值会员</a>
                        </div>
                    </div>
                </li>
                {/neq}
                <li class="nav-item dropdown"><a class="nav-link" href="{:url("/help/")}">帮助中心</a></li>
                <li class="nav-item dropdown"><a class="nav-link" href="{:url("/sitemap/index")}">网站地图</a></li>
            </ul>
        </div>
    </nav>
</div>
{block name="header_top"}{/block}
<!--主体-->
{block name="body"}{/block}
<footer>
    <div class="width-out">
        <div class="d-flex justify-content-between footer-nav">
            <ul class="d-flex foot-nav">
                {help_category limit="5" is_home='1'}
                <li>
                    <h5>{$name}</h5>
                    {help_list cid="$category['id']" limit="10" is_home='1'}
                    <a href="{:url('/help/' . $id,'','html')}">{$title}</a>
                    {/help_list}
                </li>
                {/help_category}
            </ul>
            <div class="foot-qrcode d-flex">
                <div>
                    <div class="subsitute-bg">
                        <img src="/{$site_info.weixin_qrcode}">
                    </div>
                    <p>扫码关注{$site_info.site_title}<br/>掌握最新课件咨询</p>
                </div>
            </div>
        </div>
    </div>
    <div class="footer-copyright">
        <p>Copyright  2020-{:date('Y')} <a href="{$site_info.site_domain}">{$site_info.site_title}</a> All Rights Reserved <a href="https://beian.miit.gov.cn/#/Integrated/index" rel="nofollow" >{$site_info.beian}</a>  </p><p><a href="/">{$site_info.site_title}</a>声明：本站点发布的內容作品均来自用户投稿或网络整理，部分作品未联系到知识产权人或未发现有相关的知识产权登记</p>
        <p>如有知识产权人不愿本站分享使用所属产权作品，请立即联系：{$site_info.qq} @qq.com，我们会立即处理。</p>
    </div>
</footer>


<!--登录、注册、修改密码/弹窗-->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" id="closeLoginModal" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
            </div>
            <div class="modal-body">
                <div class="modal-body-left"></div>
                <div class="modal-body-right">
                    <div id="modalMobileLogin">
                        <div id="modalMobileNumberLogin">
                            <div class="login-modal-left-bg" style="background-image: url(__IMAGES__/login_left.png)"></div>
                            <div class="modal-body-right-tab">
                                <h3>验证码登录</h3>
                            </div>
                            <form id="loginForm" data-logintype="normal">
                                <label>
                                    <i class="iconfont text-secondary">&#xe632;</i>
                                    <input type="text" placeholder="请输入手机号" id="loginPhone" name="mobile">
                                    <div></div>
                                </label>
                                <label class="login-vericode">
                                    <i class="iconfont text-secondary">&#xe60e;</i>
                                    <input type="text" placeholder="请输入验证码" id="loginVericode" name="code_info">
                                    <button type="button" class="btn btn-outline-primary" id="TencentCaptcha" data-appid="{$site_info['tencent_captcha_appid']}" data-cbfn="callback">获取验证码</button>
                                </label>
                                <div class="modal-remember-forget"></div>
                                <button class="btn btn-primary submit" id="loginBtn" type="button">登录</button>
                            </form>
                            <div class="modal-body-right-other">
                                <div class="login-modal" style="display: block">
                                    {eq name="$site_info['weixin_login']" value='on'}
                                    <i class="iconfont text-success mr-1">&#xe633;</i><span>微信登录</span>
                                    {/eq}
                                </div>
                                <div data-type="tab" data-target="#modalMobileLogin"><i class="iconfont text-danger mr-1">&#xe632;</i><span>手机登录</span></div>
                            </div>
                        </div>
                    </div>
                    <div id="modalQrcodeLogin">
                        <div class="login-modal-left-bg" style="background-image: url(__IMAGES__/login_left.png)"></div>
                        <h5>欢迎登录{$site_info.site_title}</h5>
                        <p class="with-midline"><span>超过15,55名用户加入{$site_info.site_title}</span></p>
                        <div class="modal-body-right-qrcode">
                            <div class="subsitute-bg" id="loginWechat" data-loading="false"><img alt="登录二维码" width="100%" src="" /></div>
                        </div>
                        <p>微信扫码登录注册</p>
                        <div class="modal-body-right-other">
                            <div class="modalMobileLogin" style="display: block"><i class="iconfont text-danger mr-1">&#xe632;</i><span>手机登录</span></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
<script src="__JS__/jquery3.5.1.min.js?1.0.0"></script>
<script src="__STATIC__/js/qrcode.min.js"></script>
<script src="__JS__/popper1.16.0.min.js?1.0.0"></script>
<script src="__STATIC__/bootstrap4.6.0/js/bootstrap.min.js"></script>
<script src="__JS__/bootstrap-hover-dropdown.min.js?1.0.0"></script>
<script src="__JS__/qrcode.min.js?1.0.0"></script>
<script src="__JS__/common.js?1.0.0"></script>
<script src="__STATIC__/layer-3.2.0/layer.js"></script>

<script>
    $('body').on('mouseenter','.latest-information-hotlist li',function () {
        var parent = $(this).parent();
        parent.find('li div').hide();
        parent.find('li .text-ellipsis').show();
        $(this).find('div').show();
        $(this).find('.text-ellipsis').hide();
    });

    window.callback = function(res){
        var loginPhone = $("#loginPhone").val();

        if(res.ret === 0){
            $.ajax({
                type: "POST",
                url: "/login/send_code",
                data : {
                    'ticket' : res.ticket,
                    'randstr' : res.randstr,
                    'phone' : loginPhone
                },
                dataType: "json",
                success: function(t) {

                }
            })
        }

    }

</script>
{block name="footer"}{/block}

</body>
</html>


